<template>
	<view v-if="isLoaded">
		<li-report height="900" mode="single" :param.sync="param" :reportData="tableData" :columns="cdColumn"></li-report>
	</view>
</template>

<script>
import date from '@/utils/date';
import LiReportMixin from '../../../mixins/liReportMixin.js';
export default {
	mixins: [LiReportMixin],
	data() {
		return {
			reportFn: 'GetPageReport',
			param: {
				dataTimeRange: date.getToday(),
				pageNum: 1,
				pageSize: 99999,
				reportId: 107,
				appointType: 1
			},
			cdColumn: [
				{
					name: 'time',
					label: '餐/时段',
					fixed: true
				},
				{
					name: 'amount',
					label: '营业额',
					fixed: false,
					sorter: true
				},
				{
					name: 'companyAmount',
					label: '较昨天营业额',
					fixed: false,
					sorter: true
				},
				{
					name: 'allAmount',
					label: '营业收入',
					fixed: false,
					sorter: true
				},
				{
					name: 'companyAllAmount',
					label: '较昨天营业收入',
					fixed: false,
					sorter: true
				},
				{
					name: 'orderCount',
					label: '订单数量',
					fixed: false,
					sorter: true
				},
				{
					name: 'compareOrderCount',
					label: '较昨天订单数量',
					fixed: false,
					sorter: true
				},
				{
					name: 'person',
					label: '用餐人数',
					fixed: false
				},
				{
					name: 'comparePerson',
					label: '较昨天用餐人数',
					fixed: false
				},
				{
					name: 'reduceAmount',
					label: '优惠金额',
					fixed: false,
					sorter: true
				},
				{
					name: 'compareReduceAmount',
					label: '较昨天优惠',
					fixed: false,
					sorter: true
				}
			]
		};
	}
};
</script>
